﻿@using Webdiyer.WebControls.Mvc;
@model PagedList<MinistryStandardPlatformEntity.InfoVehicle>
@{
    Layout = "~/Views/Shared/_CommonLayout.cshtml";
}
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=XjOymLQ7XokpmPICKh0xlSyw"></script>
<script src="~/Scripts/project/ReportCenter/reportcentersearch.js"></script>
<script src="~/Scripts/project/ReportCenter/overspeedwarning.js"></script>
<div id="container" style="height: 100%;">
    <div id="allmap" class="fillparentheight" style="border: #95B8E7 1px solid;margin-bottom:10px;"></div>
    <div id="tablelist" style="overflow: auto; border: #95B8E7 1px solid;height:61%;position:relative;">
        <div id='waitingPic' style='width: 100%; text-align: center; display: none;' class="fillparentheight">
            <img src='/Images/loading.gif' style='top: 50%;left:50%;  position: absolute; margin-top: -50px;margin-left:-50px;' />
        </div>
        <div id='errorPic' style='width: 100%; text-align: center; display: none;' class="fillparentheight">
            <img src='/Images/loaderror.png' style='top: 50%; left:50%; position: absolute; margin-top: -50px;margin-left:-50px;' />
        </div>
    </div>
</div>
<div>
    @using (Ajax.BeginForm("Data",
    new RouteValueDictionary { { "pageIndex", "" } },
    new AjaxOptions
    {
        UpdateTargetId = "tablelist",
        InsertionMode = InsertionMode.InsertAfter,
        OnFailure = "loadFailed",
        LoadingElementId = "waitingPic",
        OnComplete = "loadComplete1"
    },
    new RouteValueDictionary { { "id", "searchForm" } }))
    {
        <input type="hidden" value="@ViewBag.StartTime" name="startTime" id="startTime" />
        <input type="hidden" value="@ViewBag.EndTime" name="endTime" id="endTime" />
        <input type="hidden" name="vehicles" id="vehicles" />
        <input type="hidden" value="1" name="pageIndex" id="pageIndex" />
    }
</div>
